From: Jasper St. Pierre Date: Mon, 11 Jun 2012 17:06:14 +0000 (-0400) Subject: Revert "extensionSystem: Initialize the HTTP session after parse time" X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6495 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a7ecc4cdd6161b21ea7a2f492cacd206ecb26a03;p=gnome-shell.git Revert "extensionSystem: Initialize the HTTP session after parse time" This reverts commit df5298d59c2c7b79c7477ecd1a9cf2dfa25e3b59. --- diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index 18fdf641c..70ec5e069 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -34,7 +34,11 @@ const REPOSITORY_URL_BASE = 'https://extensions.gnome.org'; const REPOSITORY_URL_DOWNLOAD = REPOSITORY_URL_BASE + '/download-extension/%s.shell-extension.zip'; const REPOSITORY_URL_INFO = REPOSITORY_URL_BASE + '/extension-info/'; -const _httpSession; +const _httpSession = new Soup.SessionAsync({ ssl_use_system_ca_file: true }); + +// See: https://bugzilla.gnome.org/show_bug.cgi?id=655189 for context. +// _httpSession.add_feature(new Soup.ProxyResolverDefault()); +Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault()); // Arrays of uuids var enabledExtensions; @@ -347,11 +351,6 @@ function onEnabledExtensionsChanged() { function init() { ExtensionUtils.init(); - _httpSession = new Soup.SessionAsync({ ssl_use_system_ca_file: true }); - // See: https://bugzilla.gnome.org/show_bug.cgi?id=655189 for context. - // _httpSession.add_feature(new Soup.ProxyResolverDefault()); - Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault()); - global.settings.connect('changed::' + ENABLED_EXTENSIONS_KEY, onEnabledExtensionsChanged); enabledExtensions = global.settings.get_strv(ENABLED_EXTENSIONS_KEY); }